package com.cws.business;

import java.util.List;
import java.util.Map;

import org.activiti.engine.repository.Deployment;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;

import com.cws.model.vo.ProcessDefinitionVO;
import com.cws.model.vo.TaskVO;

public interface IActitviyBusiness {
	
	public List<ProcessDefinitionVO> getAllProcessDefinition();
	
	public Deployment deploy(String businessKey);
	
	public List<Deployment> getAllDeployment();
	
	public List<Task> getAllTasks();
	
	
	public ProcessInstance startProcess(String processDefinitionKey, Map<String, Object> variables);
	
	public ProcessInstance startProcess(String processDefinitionKey);
	
	
	public List<ProcessInstance> getAllStartProcess();

	public List<TaskVO> getAllTaskList();
	
	public List<TaskVO> getAllTaskListByAssignee(String assignee);

	public boolean claimTask(String taskId, String userId);
	
	
	
	
	
	
	
	
	
}
